import { axios } from '@/utils/request'
export function CancelclassList(params) {
    return axios({
      url: '/school/class-consumes',
      method: 'post',
      data: params
    })
  }
//导出
export function exportfile(params){
  return axios({
    url:'/school/class-consumes/export',
    params: params,
    method:'get'
  })
}
//统计
export function sumPrice(params){
  return axios({
    url:'/school/class-consumes/sum-price',
    params: params,
    method:'post'
  })
}
//刷卡考勤记录
export function attendanceRecord(params){
  return axios({
    url:'/school/attendance-histories',
    data: params,
    method:'post'
  })
}
//删除
export function deleteRecord(params){
  return axios({
    url:`/school/attendance-histories/${params}/delete`,
    method:'post'
  })
}
//导出
export function exportRecord(params){
  return axios({
    url:'/school/attendance-histories/export',
    params: params,
    method:'get'
  })
}
//刷卡考勤打卡
export function payByCard(params){
  return axios({
    url:'/school/attend-card/create',
    data: params,
    method:'post'
  })
}
//统计签到 签退学员
export function statisticsPeople(params){
  return axios({
    url:'/school/attendance-histories/statistics',
    data: params,
    method:'post'
  })
}
//今日签到列表
export function todayList(params){
  return axios({
    url:'/school/attendance-histories/attend-student',
    data: params,
    method:'post'
  })
}
export function studentList(params){
  return axios({
    url:'/school/attend-card/student-list',
    data: params,
    method:'post'
  })
}
//老师补卡

export function teacherSign(params){
  return axios({
    url:'/school/attendance-histories/teacher-sign',
    data: params,
    method:'post'
  })
}
//考勤配置获取
export function attendance(params){
  return axios({
    url:'/school/schools/attendance-get-setting',
    data: params,
    method:'post'
  })
}
//提交考勤配置
export function submitAttendance(params){
  return axios({
    url:'/school/schools/attendance-setting',
    data: params,
    method:'post'
  })
}
//增加卡号
export function addIdCard(id,params){
  return axios({
    url:`/school/students/${id}/bind-attend-card`,
    data: params,
    method:'post'
  })
}